<?php 
	include "../ini.php";
	include '../includes/function.php';
	include "../libraries/xl_thanh_vien.php";
	$dt_xl_thanh_vien=new xl_thanh_vien;
	
	$thanh_vien=$dt_xl_thanh_vien->xem_ten_dn($_SESSION['TEN_DANG_NHAP_USER']);
	$nam=substr($thanh_vien['ngay_sinh'],0,4);
	$thang=substr($thanh_vien['ngay_sinh'],5,2);
	$ngay=substr($thanh_vien['ngay_sinh'],8,2);
	$ngay_sinh=$thang.'/'.$ngay.'/'.$nam;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http//www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xmllang="en">
<head>
<?php include '../widgets/head.php'?>
<script type="text/javascript" src="../js/jquery/external/jquery.simplyscroll-1.0.4/jquery.simplyscroll-1.0.4.min.js"></script>
<link rel="stylesheet" href="../js/jquery/external/jquery.simplyscroll-1.0.4/jquery.simplyscroll-1.0.4.css" media="all" type="text/css">
<script type="text/javascript" src="../js/jquery/external/stickytooltip/stickytooltip.js"></script>
<link rel="stylesheet" type="text/css" href="../js/jquery/external/stickytooltip/stickytooltip.css" />
</head>
<body>
<div id="art-page-background-glare">
  <div id="art-page-background-glare-image">
    <div id="art-main">
      <div class="art-sheet">
        <div class="art-sheet-tl"></div>
        <div class="art-sheet-tr"></div>
        <div class="art-sheet-bl"></div>
        <div class="art-sheet-br"></div>
        <div class="art-sheet-tc"></div>
        <div class="art-sheet-bc"></div>
        <div class="art-sheet-cl"></div>
        <div class="art-sheet-cr"></div>
        <div class="art-sheet-cc"></div>
        <div class="art-sheet-body">
          <?php include '../widgets/header.php'?>
          <?php include '../widgets/nav.php'?>
          <div class="art-content-layout">
            <div class="art-content-layout-row">
              <div class="art-layout-cell art-sidebar1">
                <?php sidebar('left');?>
                <div class="cleared"></div>
              </div>
              <div class="art-layout-cell art-content">
                <div class="art-post">
                  <div class="art-post-tl"></div>
                  <div class="art-post-tr"></div>
                  <div class="art-post-bl"></div>
                  <div class="art-post-br"></div>
                  <div class="art-post-tc"></div>
                  <div class="art-post-bc"></div>
                  <div class="art-post-cl"></div>
                  <div class="art-post-cr"></div>
                  <div class="art-post-cc"></div>
                  <div class="art-post-body">
                    <div class="art-post-inner art-article">
                      <?php thong_bao()?>
                      <h2 class="art-postheader">Cặp nhật thông tin</h2>
                      <div class="line"> </div>
                      <div class="art-postcontent">
                        <form class="dangky" action="../thanh-vien/xu-ly-cap-nhat-thong-tin.html" method="post">
                          <h2>Thông tin cá nhân</h2>
                          <div class="content">
                            <table class="form">
                              <tr>
                                <th>Họ và tên</th>
                                <td><input class="text" type="text" value="<?php echo $thanh_vien['ho_ten'];?>" name="ho_ten">
                                <input type="hidden" name="ma" value="<?php echo $thanh_vien['ma']?>"/>
                                <input type="hidden" name="email_cu" value="<?php echo $thanh_vien['email'];?>" />
                                  (*)</td>
                              </tr>
                              <tr>
                                <th>Ngày sinh</th>
                                <td><script>
										$(function() {
											$( "#datepicker" ).datepicker();
										});
									</script>
                                  <input class="text-input small-input date text" value="<?php echo $ngay_sinh;?>" name="ngay_sinh" type="text" id="datepicker"/>
                                  (*)<br />
                                  <small>Nhập vào dạng ngày tháng MM/DD/YYYY</small>
                                  </p></td>
                              </tr>
                              <tr>
                                <th>Giới tính</th>
                                <td class="k_gc"><input value="0" type="radio" <?php  if($thanh_vien['gioi_tinh']=="0") echo 'checked="checked"';?> name="gioi_tinh" />
                                  Nam
                                  <input type="radio" value="1" <?php  if($thanh_vien['gioi_tinh']=="1") echo 'checked="checked"';?> name="gioi_tinh" />
                                  Nữ<span style="float:right; color:red">(*)</span></td>
                                  </td>
                              </tr>
                              <tr>
                                <th>E-mail</th>
                                <td><input class="text" type="text" value="<?php echo $thanh_vien['email'];?>" name="email">
                                  (*)</td>
                              </tr>
                              <tr>
                                <th>Điện Thoại</th>
                                <td><input class="text" type="text" value="<?php echo $thanh_vien['dien_thoai'];?>" name="dien_thoai">
                                  (*)</td>
                              </tr>
                              <tr>
                                <th>Công ty</th>
                                <td><input class="text" type="text" value="<?php echo $thanh_vien['cong_ty'];?>" name="cong_ty"></td>
                              </tr>
                              <tr>
                                <th>Địa chỉ</th>
                                <td><input class="text" type="text" value="<?php echo $thanh_vien['dia_chi'];?>" name="dia_chi">
                                  (*)</td>
                              </tr>
                              <tr>
                                <th>Mật khẩu xác nhận</th>
                                <td><input class="text" type="password" value="" name="mat_khau">
                                  (*)</td>
                              </tr>
                            </table>
                          </div>
                          <div style="text-align:center" class="buttons">
                            <input type="submit" class="button" value="THỰC HIỆN" />
                          </div>
                        </form>
                      </div>
                      <div class="cleared"></div>
                    </div>
                    <div class="cleared"></div>
                  </div>
                </div>
                <div class="cleared"></div>
              </div>
              <div class="art-layout-cell art-sidebar2">
                <?php sidebar('right')?>
                <div class="cleared"></div>
              </div>
            </div>
          </div>
          <div class="cleared"></div>
          <?php include '../widgets/footer.php'?>
          <div class="cleared"></div>
        </div>
      </div>
    </div>
  </div>
</div>
</body>
</html>
